package pervasivePositioning.ui;

import android.content.Context;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.Toast;

public class SettingsChangedWatcher implements TextWatcher {
	
	StrategyController controller;
	
	SettingsChangedWatcher(StrategyController c) {
		controller = c;
//		buddy = b;
	};
	
	@Override
    public void afterTextChanged(Editable s) {
      controller.getPropertyFields();
    }
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {
    }
    
    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
//        controller.getPropertyFields();
    	
        try {
            Integer.parseInt(s.toString());
        } catch (NumberFormatException e) {
        }
    }
}
